cssrbtree: Fix a crasher
authorBenjamin Otte <otte@redhat.com>
Wed, 19 Sep 2018 02:26:37 +0000 (04:26 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 19 Sep 2018 02:31:29 +0000 (04:31 +0200)
commit5bf009a203000ee2d5ddd8b66cd855197d66c8e5
tree22e979a3e05e7dd944b187af472ceecb2c9001cb
parent93a89a371e606d9ce914a695cdff64711d807357
cssrbtree: Fix a crasher

After removing elements, there were a few cases where the tree wasn't
properly balanced which could further down violate assumptions about the
layout.

Attached is the original testcase that triggered it. I didn't bother
simplifying it.
gtk/gtkcssrbtree.c
testsuite/gtk/cssrbtree-crash.c [new file with mode: 0644]
testsuite/gtk/meson.build